package com.xuecheng.api.cms;

import com.xuecheng.framework.domain.cms.CmsPage;
import com.xuecheng.framework.domain.cms.request.QueryPageRequest;
import com.xuecheng.framework.domain.cms.response.CmsPageResult;
import com.xuecheng.framework.domain.cms.response.CmsPostPageResult;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.ApiOperation;

public interface CmsPageControllerApi {
    //页面查询
    @ApiOperation("分页查询页面列表")
    public QueryResponseResult<CmsPage> findList(int page, int size, QueryPageRequest queryPageRequest);
    //新增页面
    @ApiOperation("新增页面")
    public CmsPageResult add(CmsPage cmsPage);
    @ApiOperation("根据页面ID来查询页面信息")
    //根据页面ID来查询页面信息
    public CmsPage findById(String id);
    @ApiOperation("修改页面")
    //修改页面
    public CmsPageResult edit(String id,CmsPage cmsPage);
    @ApiOperation("删除页面")
    //删除页面
    public ResponseResult delete(String id);
    @ApiOperation("发布页面")
    //发布页面
    public ResponseResult post(String pageId);
    @ApiOperation("保存页面")
    public CmsPageResult save(CmsPage cmsPage);
    @ApiOperation("一键发布页面")
    public CmsPostPageResult postPageQuick(CmsPage cmsPage);
}
